home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  2.3 KB  |  101 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Notification.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Notification;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __NOTIFICATION__}
  27. {$SETC __NOTIFICATION__ := 1}
  28.  
  29. {$I+}
  30. {$SETC NotificationIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$IFC UNDEFINED __OSUTILS__}
  40. {$I OSUtils.p}
  41. {$ENDC}
  42. {    MixedMode.p                                                    }
  43. {    Memory.p                                                    }
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49. TYPE
  50.     NMRec = RECORD
  51.         qLink:                    QElemPtr;                                {next queue entry}
  52.         qType:                    INTEGER;                                {queue type -- ORD(nmType) = 8}
  53.         nmFlags:                INTEGER;                                {reserved}
  54.         nmPrivate:                LONGINT;                                {reserved}
  55.         nmReserved:                INTEGER;                                {reserved}
  56.         nmMark:                    INTEGER;                                {item to mark in Apple menu}
  57.         nmIcon:                    Handle;                                    {handle to small icon}
  58.         nmSound:                Handle;                                    {handle to sound record}
  59.         nmStr:                    StringPtr;                                {string to appear in alert}
  60.         nmResp:                    UniversalProcPtr;                        {pointer to response routine}
  61.         nmRefCon:                LONGINT;                                {for application use}
  62.     END;
  63.     NMRecPtr = ^NMRec;
  64.  
  65.     NMProcPtr = ProcPtr;  { PROCEDURE NM(nmReqPtr: NMRecPtr); }
  66.     NMUPP = UniversalProcPtr;
  67.  
  68. CONST
  69.     uppNMProcInfo = $000000C0; { PROCEDURE (4 byte param); }
  70.  
  71. FUNCTION NewNMProc(userRoutine: NMProcPtr): NMUPP;
  72.     {$IFC NOT GENERATINGCFM }
  73.     INLINE $2E9F;
  74.     {$ENDC}
  75.  
  76. PROCEDURE CallNMProc(nmReqPtr: NMRecPtr; userRoutine: NMUPP);
  77.     {$IFC NOT GENERATINGCFM}
  78.     INLINE $205F, $4E90;
  79.     {$ENDC}
  80. { ------------------ }
  81.  
  82. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  83.     {$IFC NOT GENERATINGCFM}
  84.     INLINE $205F, $A05E, $3E80;
  85.     {$ENDC}
  86. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  87.     {$IFC NOT GENERATINGCFM}
  88.     INLINE $205F, $A05F, $3E80;
  89.     {$ENDC}
  90.  
  91. {$ALIGN RESET}
  92. {$POP}
  93.  
  94. {$SETC UsingIncludes := NotificationIncludes}
  95.  
  96. {$ENDC} {__NOTIFICATION__}
  97.  
  98. {$IFC NOT UsingIncludes}
  99.  END.
  100. {$ENDC}
  101.